<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <title>Attendance check</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        //
    });
    </script>
</head>
<%


 %>
<body>
    <div class="wrapper wcol-12">
        <div class="header">
            <ul class="header__nav col-9">
               <li><a href="admin">Teachers</a></li>
               <li><a href="admin?database" >Database</a></li>
                <li class="header__nav--active"><a href="admin_support" >Support</a></li>
            </ul>
            <ul class="header__nav--right">
                 <li>
                    <a href="#"><c:out value="${admin.id} "></c:out></a>
                    <!-- <ul class="header__nav--dropdown">
                        <li><a href="#">Account settings</a></li>
                        <li><a href="#">Log out</a></li>
                    </ul> -->
                </li>
                <li><a href="admin?logout">Log out</a></li>
            </ul>
        </div>
        <div class="content">
            <h3> <c:out value="${question.teacher_name}"></c:out></h3>
            <p><c:out value="${question.question}"></c:out></p>
            <form class="form" action="admin_support" method="post">
                <div class="form__group">
                    <label for="text">Your answer</label>
                    <textarea cols="60" rows="10" id="text" name="answertext">
                    <c:out value="${question.answer}"/>
                    </textarea>
                </div>
                <div>
                    <input type="submit" class="btn" value="Save" />
                    <a href="admin_support" class="btn-grey">Cancel</a>
                </div>
            </form>
            <div class="clear"></div>
        </div>
        <div class="footer"></div>
    </div>
</body>
</html>